package io.sage.modules.statistics.dao;

import java.util.List;
import java.util.Map;

import io.sage.modules.statistics.vo.BStatisVo;
import org.apache.ibatis.annotations.Param;

import io.sage.modules.statistics.entity.BStatisticsPmTwo;
import io.sage.modules.statistics.entity.BStatisticsPmTwoExample;

public interface BStatisticsPmTwoMapper {
    int countByExample(BStatisticsPmTwoExample example);

    int deleteByExample(BStatisticsPmTwoExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(BStatisticsPmTwo record);

    int insertSelective(BStatisticsPmTwo record);

    List<BStatisticsPmTwo> selectByExample(BStatisticsPmTwoExample example);

    BStatisticsPmTwo selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") BStatisticsPmTwo record, @Param("example") BStatisticsPmTwoExample example);

    int updateByExample(@Param("record") BStatisticsPmTwo record, @Param("example") BStatisticsPmTwoExample example);

    int updateByPrimaryKeySelective(BStatisticsPmTwo record);

    int updateByPrimaryKey(BStatisticsPmTwo record);

    /**
	 * PM2.5列表
	 * @param example
	 * @return
	 */
	List<BStatisticsPmTwo> selectStatisticsPmTwoList(Map<String, Object> params);

	/**
	 * 批量添加传感器的PM2.5
	 * @param list
	 * @return
	 */
	int savePmTwoList(@Param("list")List<BStatisticsPmTwo> list);

    /**
     * 根据库房id查询记录
     * @param params
     * @return
     */
    List<BStatisVo> selectListByWarehouseId(Map params);
}
